#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2018/11/2 15:58
@desc
"""
from datetime import datetime, date

from apscheduler.schedulers.blocking import BlockingScheduler
import time

scheduler = BlockingScheduler()


def my_job():
    print("%s:执行任务" % time.asctime())


scheduler.add_job(my_job, 'date', run_date=date(2018, 12, 2), args=[])
scheduler.add_job(my_job, 'date', run_date=datetime(2018, 11, 2, 16, 0, 0), args=[])
scheduler.add_job(my_job, 'date', run_date='2018-11-2 16:03:00', args=[])


scheduler.start()
